<template>
  <div class="not-found">
    <div class="content">
      <h1>404</h1>
      <h2>页面未找到</h2>
      <p>抱歉，您访问的页面不存在或已被移除</p>
      <to-login icon="HomeFilled" text="返回首页" path="/" />
    </div>
  </div>
</template>

<script setup>
import ToLogin from "@/components/toLogin.vue";
import { useRouter } from "vue-router";

const router = useRouter();

const goHome = () => {
  router.push("/");
};
</script>

<style scoped>
.not-found {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
}

.content {
  text-align: center;
  padding: 2rem;
}

h1 {
  font-size: 8rem;
  margin: 0;
  color: #409eff;
  line-height: 1;
  font-weight: bold;
}

h2 {
  font-size: 2rem;
  margin: 1rem 0;
  color: #303133;
}

p {
  color: #606266;
  margin-bottom: 2rem;
}

.el-button {
  padding: 12px 30px;
  font-size: 1.1rem;
}
</style>
